// Types.cpp : Defines the entry point for the console application. // #include int main() { int i{ 2 }; i = static_cast(3.2); i = static_cast(2.9); i = -1; std::cout << i << std::endl; double d{ 2.7 }; std::cout << d << std::endl; i = static_cast(d); d = i; unsigned int u{ 0 }; u = -2; bool flag{ true }; flag = false; flag = static_cast(7); std::cout << flag << std::endl; return 0; }